package com.ruoyi.common.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 是否枚举
 */
@Getter
@AllArgsConstructor
public enum SysYesNo implements IEnum<String> {

    YES("Y", "是"),
    NO("N", "否");

    @EnumValue
    @JsonValue
    private final String value;

    private final String label;
}
